package com.tedu.demo5.controller;

import com.tedu.demo5.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    public IUserService userService;
    public void login(){
        System.out.println("UserController：收到用户请求，要求登录");
        boolean success = userService.login("张三","123456");
        if(success) {
            System.out.println("UserController:回馈用户登陆成功提示");

        }else{
            System.out.println("用户名或密码错误");
        }

    }

}
